<template>
  <div id="news">
    <div class="img"></div>
    <div class="Box">
      <div class="container" v-for="item in list">
        <img :src="item.imgurl" alt="" />
        <p>{{ item.value }}</p>
      </div>
    </div>
    <div class="btn">
      <router-link to="/new">返回</router-link>
    </div>
  </div>
</template>

<script>

export default {
  data() {
    return {
      list: [],
    };
  },
  created() {
    this.list.push(this.$route.params.item);
  },
};
</script>

<style lang="less" scoped>
#news {
  // height: 100%;
  background-color: #f2f5f8;
 
  .img{
    height:604px ;
    background-color: aqua;
    background-image: url('../assets/images/Web 1920 – 4_slices/组 7.png');
 background-position: center;
 background-repeat: no-repeat;
  }
  .Box {
    display: flex;
   
    justify-content: space-between;
    width: 1664px;
    flex-wrap: wrap;
    margin: 0 auto;
     margin-top: 109px;
    .container:hover {
      //   border: 4px solid #4488f7;
      box-shadow: 0px 3px 6px #4488f7;
    }
    .container {
      margin-bottom: 65px;
      width: 520px;
      height: 340px;
      background: #ffffff;
      opacity: 1;
      border-radius: 0px;
      text-align: center;
      line-height: 100px;
      img {
        width: 120px;
        height: 120px;
        margin-top: 57px;
      }
      p {
        // width: 240px;
        height: 40px;
        font-size: 40px;
        font-family: Source Han Sans CN;
        font-weight: 500;
        color: #170706;
        opacity: 1;
      }
    }
  }

  .btn {
      margin: auto;
    display: flex;
    align-items: center;
    text-align: center;
    width: 230px;
    height: 90px;
    font-size: 40px;
    background: #2e86ff;
    a {
        margin: 0 auto;
      width: 96px;
      height: 40px;
      font-size: 40px;
      font-family: Source Han Sans CN;
      font-weight: 500;
      color: #ffffff;
      opacity: 1;
      text-decoration: none;
    }
  }
}
</style>
